function renderDisplay(){
    // alert("1")
    var fullWidth = `${document.documentElement.clientWidth}`  
    var scale = fullWidth / 1920  - 0.01;

    var el = document.getElementById('app');
    // css3会导致 字体模糊 根据scale 的数值去 显示是 zoom 或者 scale 变换
    // if(scale > 0.6){
    //     el.style.zoom = scale;
    // }
    // else{
    //     el.style.transform = '   translate(-50%, 0%) scale('+scale+')';
    // }
    el.style.transform = '   translate(-50%, 0%) scale('+scale+')';
    // el.style.zoom = scale;
    // var top = el.offsetHeight * (1-scale)/ - 2 ;
    // el.style.top = top + 'px';
    
    var elDialog = document.getElementsByClassName('.el-dialog');
    // console.log(scale)
    // if(scale <= 0.8){
    //     var scale2 = scale+0.2
    // }else if(scale >= 1){
    //     var scale2 = 1
    // }
    
    // elDialog.style.transform = '   translate(-50%, 0%) scale('+scale+')';
    // elDialog[index].style.transform = 'scale('+scale+')';
    for (let index = 0; index < elDialog.length; index++) {
        elDialog[index].style.transform = 'translate(0%, 0%) scale('+scale+')';
    }
}


export  {
    renderDisplay
}
